import request from "@/utils/request";

export const getList = params => {
    return request({
      url: '/sys/config/list', 
      params
    })
} 

export const add = data => {
    return request({
      url: '/sys/config/add', 
      method: 'POST',
      data
    })
} 
  
export const getDeail = params => {
    return request({
      url: '/sys/config/detail', 
      params
    })
} 

export const getAllDetail = params => {
  return request({
    url: '/sys/config/all', 
    params
  })
} 


export const edit = data => {
    return request({
      url: '/sys/config/edit', 
      method: 'POST',
      data
    })
} 


export const getConfig = params => {
  return request({
    url: '/sys/config/getConfig', 
    params
  })
} 



export const getKey = params => {
  return request({
    url: '/sys/config/getKey', 
    params
  })
} 



export const save = data => {
  return request({
    url: '/sys/config/save', 
    method: 'POST',
    data
  })
} 



export const del = data => {
    return request({
      url: '/sys/config/delete', 
      method: 'POST',
      data
    })
} 